![]() | Custom Dialog Control Creation | populate() | ![]() |
Initialize the control. This is where any additional DOM elements are created and appended to the passed container div. The options object contains 3 properties...
This is an object which holds the properties set in the xpertrule form designer along with helper properties such as dialog (reference to the dialog itself) and tab (if the control is contained on another control).
A function which should be called in response to a value change.
The object ID which the XpertRule dialog is "tied" to. This is to enable the XpertRule developer to leave any tied reference on the control blank and you'r custome control can then revert to the tied object. This allows for generic dialogs.
The convention is to store the options object (along with any control specific properties) in a data element of the container div under the name "xrui_ctrl".
e.g.
$this.data('xrui_ctrl',options);